Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Int range #6207

Merged
merged 3 commits into from
Jul 30, 2021
Merged

Int range #6207

merged 3 commits into from
Jul 30, 2021

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Jul 30, 2021

This PR adds basic functionality for integer range, as they were added in PHPStan in their latest release.

This will allow Psalm to read them, transforming them back to known types when large enough(positive-int, int) and to perform very basic operations.

This is the first step of many. To have full support, we will have to work on:

  • docblock assertions
  • combine/intersect
  • internal assertions
  • for loops with boundaries

at least

@weirdan weirdan merged commit 3a049df into vimeo:master Jul 30, 2021
@weirdan
Copy link
Collaborator

weirdan commented Jul 30, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants